<template>
  <div class="home">
  <!-- <Count :num="num" @add="handleAdd"></Count> -->
  <Count :num.sync="num"></Count>
  </div>
</template>

<script>
// @ is an alias to /src
import Count from '@/components/Count.vue'

export default {
  name: 'Home',
  components: {
    Count
  },
  data() {
    return {
      num:1
    }
  },
  // methods: {
  //   handleAdd(val){
  //     console.log(val);//12
  //     this.num++
  //   }
  // },
}
</script>
